Wallpaper display control method and apparatus and electronic device

ABSTRACT

The present application discloses a wallpaper display control method and apparatus and an electronic device, which belong to the technical field of electronic devices. The method includes: receiving a first input performed by a user, where the first input is used to trigger lighting of a screen of an electronic device; and in response to the first input, control an object layer image of a wallpaper image of the screen of the electronic device to execute a first display animation based on a first animation parameter, and control a background layer image of the wallpaper image to execute a second display animation based on a second animation parameter, where the first animation parameter and the second animation parameter are different.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of International ApplicationNo. PCT/CN2021/106742, filed on Jul. 16, 2021, which claims priority toChinese Patent Application No. 202010692232.3 filed in China in Jul. 17,2020, which are incorporated herein by reference in their entireties.

TECHNICAL FIELD

The present application belongs to the technical field of electronicdevices, and in particular, relates to a wallpaper display controlmethod and apparatus and an electronic device.

BACKGROUND

Currently, mobile terminal users all like to set personalized wallpaperimages on mobile terminal devices. The wallpaper image is displayed whenthe device screen is lit.

In the process of realizing the present application, the inventor foundthat there are at least the following problems in the prior art: theexisting wallpaper images are generally fixed wallpaper images providedby manufacturers, and after the electronic devices display the wallpaperimages, the user generally ignores the wallpaper images directly, andthe function of the wallpaper images in the process of using the mobileterminal by the user is greatly reduced.

SUMMARY

According to a first aspect of the present application, a wallpaperdisplay control method is provided, which includes:

receiving a first input performed by a user, where the first input isused to trigger lighting of the screen of an electronic device; and

in response to the first input, controlling an object layer image of awallpaper image of the screen of the electronic device to execute afirst display animation based on a first animation parameter, andcontrolling a background layer image of the wallpaper image to execute asecond display animation based on a second animation parameter;

where the first animation parameter and the second animation parameterare different.

According to a second aspect of the present application, a wallpaperdisplay control apparatus is provided, which includes:

a first receiving module, configured to receive a first input performedby a user, where the first input is used to trigger lighting of thescreen of an electronic device; and

a first response module, configured to: in response to the first input,control an object layer image of a wallpaper image of the screen of theelectronic device to execute a first display animation based on a firstanimation parameter, and control a background layer image of thewallpaper image to execute a second display animation based on a secondanimation parameter;

where the first animation parameter and the second animation parameterare different.

According to a third aspect of the present application, an electronicdevice is provided, where the electronic device includes a processor, amemory, and a program or an instruction stored in the memory and capableof running on the processor, and when the program or the instruction isexecuted by the processor, the steps of the method according to thefirst aspect are implemented.

According to a fourth aspect of the present application, a readablestorage medium is provided, where the readable storage medium stores aprogram or an instruction, and when the program is executed by aprocessor, the steps of the access method according to the first aspectare implemented.

According to a fifth aspect of the present application, a chip isprovided, where the chip includes a processor and a communicationsinterface, the communications interface is coupled to the processor, andthe processor is configured to run a program or an instruction, toimplement the method according to the first aspect.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic flowchart of a wallpaper display control methodaccording to an embodiment of the present application;

FIG. 2 is a schematic diagram of an object layer image and a backgroundlayer image of a wallpaper image according to an embodiment of thepresent application;

FIG. 3 a is a first schematic diagram of display of an object layerimage according to an embodiment of the present application;

FIG. 3 b is a second schematic diagram of display of an object layerimage according to an embodiment of the present application;

FIG. 4 is a schematic diagram of modules of a wallpaper display controlapparatus according to an embodiment of the present invention;

FIG. 5 is a first structural block diagram of an electronic deviceaccording to an embodiment of the present invention; and

FIG. 6 is a second structural block diagram of an electronic deviceaccording to an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present application with reference to theaccompanying drawings in the embodiments of the present application.Apparently, the described embodiments are some but not all of theembodiments of the present application. All other embodiments obtainedby a person of ordinary skill in the art based on the embodiments of thepresent application without creative efforts shall fall within theprotection scope of the present application.

The terms “first”, “second”, and the like in the specification andclaims of the present application are used to distinguish betweensimilar objects instead of describing a specific order or sequence. Itshould be understood that the data used in such a way is interchangeablein proper circumstances so that the embodiments of the presentapplication can be implemented in an order other than the orderillustrated or described herein. In addition, objects distinguished by“first”, “second”, and the like usually belong to one type, and thenumber of the objects is not limited. For example, there may be one ormore first objects. In addition, in the specification and the claims,“and/or” represents at least one of connected objects, and a character“/” generally represents an “or” relationship between associatedobjects.

The image display method provided in the embodiments of the presentapplication are described in detail below through specific embodimentsand application scenarios thereof with reference to the accompanyingdrawings.

As shown in FIG. 1 , an embodiment of the present application providesan image display method, applied to an electronic device and including:

Step 101: Receive a first input performed by a user, where the firstinput is used to trigger lighting of the screen of an electronic device.

The first input is an input performed when the electronic device is in ascreen-off state. Alternatively, the user can perform the first input inan unlocking scenario of the electronic device, or perform the firstinput in the scenario where screen-locking information of the electronicdevice is to be viewed. The first input may be a tap input, a double-tapinput, or the like.

Step 102: In response to the first input, control an object layer imageof a wallpaper image of the screen of the electronic device to execute afirst display animation based on a first animation parameter, andcontrol a background layer image of the wallpaper image to execute asecond display animation based on a second animation parameter.

The first animation parameter and the second animation parameter aredifferent.

In this step, after receiving the first input, the object layer imageand the background layer image are dynamically displayed on the screenaccording to different animation parameters. For example, the objectlayer image is displayed in a manner of diffuse lighting, and thebackground layer image is displayed in a manner of slowly lighting. Thefirst display animation refers to an animation when the object layerimage is displayed according to the first animation parameter, and thesecond display animation refers to an animation when the backgroundlayer image is displayed according to the second animation parameter.

In this way, the object layer image and the background layer image aredisplayed based on different animation parameters, which can effectivelydistinguish the object layer image from the background layer image inthe wallpaper image, and then can highlight the object layer image inthe wallpaper image. In addition, any image set as the wallpaper by theuser can achieve the effect of highlighting the object layer image inthe wallpaper image, thereby strengthening the function of the wallpaperin the process of using the mobile terminal by the user.

Optionally, before the controlling an object layer image of a wallpaperimage of the screen of the electronic device to execute a first displayanimation based on a first animation parameter, and controlling abackground layer image of the wallpaper image to execute a seconddisplay animation based on a second animation parameter; the methodfurther includes:

separating an object layer from a background layer of the wallpaperimage to obtain the object layer image and the background layer image,and in a process of separating the object layer from the backgroundlayer of the wallpaper image, recording outline information and centerpoint information of the object layer image.

The object layer may refer to a screen subject in the wallpaper image,and the screen subject may be a person or an object, a single person(object), or multiple persons (objects). The background layer may referto an image other than the object layer in the wallpaper image. If thereare multiple persons or objects, the wallpaper image includes multipleobject layer images. Optionally, each person or object may correspond toone object layer image, or two or more persons or objects may correspondto one object layer image. For example, if the screen subject includesperson A and person B, the object layer image includes two object layerimages formed by person A and person B respectively.

In this step, the object layer and the background layer of the wallpaperimage can be separated through an image recognition technology.Optionally, after separation, each person or object can correspond toone object layer image, or two or more persons or objects can correspondto one object layer image. As shown in FIG. 2 , an object layer image201 and a background layer image 202 are obtained, and in the process ofseparating the object layer from the background layer of the wallpaperimage, outline information and center point information of the objectlayer image are recorded.

Herein, by separating the object layer from the background layer of thewallpaper image, it is convenient to subsequently display the objectlayer image and the background layer image based on different animationparameters, so as to achieve the purpose of highlighting the objectlayer image, thereby strengthening the function of the wallpaper in theprocess of using the mobile terminal by the user.

Optionally, the controlling an object layer image of a wallpaper imageof the screen of the electronic device to execute a first displayanimation based on a first animation parameter includes:

according to the outline information and the center point information ofthe object layer image, controlling the object layer image of thewallpaper image of the screen of the electronic device to execute thefirst display animation in a preset manner;

where the preset manner includes at least one of the following:

a manner of spreading from the center point to the surrounding, and amanner of gathering from the surrounding to the center point.

Of course, the preset manner may also include other animation displaymanners in the prior art, which are not specifically limited herein.

According to the above description, in the embodiments of the presentapplication, in the process of separating the object layer image fromthe background layer image, the outline information and the center pointinformation of the object layer image are recorded. In a specificimplementation, as shown in FIG. 3 a, a mask is generated based on anoutline according to the outline information of the object layer image,and a display area of the object layer image is controlled by the mask,so that the display area of the object layer image is gradually enlargedduring the animation process, so as to achieve the visual effect thatthe object layer image diffuses and brightens in combination with itsown shape. Alternatively, as shown in FIG. 3 b, the display area of theobject layer image is directly controlled to gradually spread during theanimation process.

Here, according to the outline information and the center pointinformation of the object layer image, the object layer image of thewallpaper image of the screen of the electronic device is controlled toexecute the first display animation in a preset manner, which canrealize that the object layer image executes the visual effect of thefirst display animation in combination with its own shape.

Optionally, the first animation parameter changes from a first numericalvalue to a second numerical value within a first animation duration, andthe second animation parameter changes from a third numerical value to afourth numerical value within a second animation duration;

The first animation duration is less than the second animation duration,and the first numerical value is greater than or equal to the thirdnumerical value.

The first animation parameter includes at least one of transparency andbrightness.

The second animation parameter includes at least one of transparency andbrightness.

The first animation duration is an animation duration corresponding tothe object layer image, and the second animation duration is ananimation duration corresponding to the background layer image.

It should be noted that, in this embodiment of the present application,the first animation duration is a duration corresponding to a first timeperiod, a time range of the first time period is from a first time to asecond time, and the second animation duration is a durationcorresponding to a second time period, a time range of the second timeperiod is from a third time to a fourth time, where the first time andthe third time may be the same or different, that is, the start time ofthe first animation duration and the start time of the second animationduration can be the same or different.

In addition, when the object layer image includes multiple objects, themultiple objects may be displayed simultaneously in an animated mannerwithin the first animation duration according to the first animationparameter, or may be sequentially displayed in an animated manner withinthe first animation duration according to the first animation parameter.

For the object layer image, the first animation duration is T1, thevariable value of transparency is A1, and the variable value ofbrightness is L1. For the background layer image, the second animationduration is T2, the variable value of transparency is A2, and thevariable value of brightness is L2. T2 should be greater than T1, andthe numerical changes of A1, L1, A2, and L2 should be controlled bydifferent animation interpolators. It is assumed that the transparencyof the object layer image changes from 50% (the first numerical valueabove) to 100% (the second numerical value above), the brightnesschanges from 20% (the first numerical value above) to 100% (the secondnumerical value above), and the animation duration is 500 ms (the firstanimation duration), the transparency of the background layer imagechanges from 0% (the third numerical value above) to 100% (the fourthnumerical value above), and the brightness changes from 0% (the thirdnumerical value above) to 100% (the fourth numerical value above), andthe animation duration is 800 ms (the second animation duration).Assuming that the start times corresponding to the first animationduration and the second animation duration are the same (both are 0 ms),at 100 ms, the brightness of the object layer image is 50%, thetransparency of the object layer image is 50%, the brightness of thebackground layer is 20%, and the transparency of the background layer is20%; at 300 ms, the brightness of the object layer image is 70%, thetransparency of the object layer image is 70%, the brightness of thebackground layer is 40%, and the transparency of the background layer is40%; at 500 ms, the brightness of the object layer image is 100%, thetransparency of the object layer image is 100%, the brightness of thebackground layer is 70%, and the transparency of the background layer is70%.

In this way, through the first animation parameter and the secondanimation parameter, the object layer image in the wallpaper imagediffuses and brightens, and the background layer image slowly brightens,thereby achieving the effect of highlighting the object layer image.

It should be noted that, in this embodiment of the present application,in addition to displaying different display effects to the user throughbrightness and transparency, the object layer image can also behighlighted through animation scaling of different amplitudes, or theobject layer image can be highlighted through displacement animation ofdifferent amplitudes.

Optionally, the wallpaper display control method of the embodiments ofthe present application further includes:

receiving a second input performed by the user on the screen;

determining an input parameter of the second input, where the inputparameter includes at least one of an input time and an input location;and

executing a target control function according to target information;

where the target information includes at least one of the following: afirst relationship, a second relationship, and a real-time display areaof the wallpaper image;

where the first relationship refers to a relationship between the inputtime and the first animation duration and the second animation duration,the second relationship refers to a relationship between the inputposition and a first display area and a second display area, the firstdisplay area is a display area corresponding to the object layer image,and the second display area is a display area corresponding to thebackground layer image;

The real-time display area of the wallpaper image is a real-time displayarea of the background layer image or a real-time display area of theobject layer image.

The second input may be a tap input, a double-tap input, or the like.

Herein, different target control functions are triggered according to atleast one of the input time of the second input, the input position ofthe second input, and the real-time display area of the wallpaper image,thereby realizing the interaction between the user and the wallpaperimage. Besides, the interaction between the user and the wallpaper imagetriggers different target control functions, which can effectivelyprotect the privacy and security of a machine owner mode.

Optionally, the performing the target control function according to thetarget information includes:

when the input time is within a time range corresponding to the firstanimation duration, and the input position is within the first displayarea, displaying an unlock interface;

or when the input time is within the time range corresponding to thefirst animation duration, the input position is within the first displayarea, and the input track of the second input is a preset track,displaying the target information of a preset application program.

Assuming that the first animation duration is the duration correspondingto the first time period, the first time period is from 0 ms to 10 ms,and the second input is input at the second ms, the input time of thesecond input is within a time period corresponding to the firstanimation duration. If the input position is still in the first displayarea, the unlock interface is displayed, the unlock interface includes apassword input keyboard, and the user can enter the machine owner modeonly after entering a correct password. On the contrary, unlock to enterthrough other methods is in a guest mode. Therefore, even if thepassword is leaked and there is no correct interaction with the displayeffect of the wallpaper image, it is difficult to enter the machineowner mode, thereby effectively protecting the privacy and security ofthe machine owner mode.

Exemplarily, the second input is a slide-down input and slides down inthe first display area within the first display duration, and the inputtrack of the second input is a preset track. In this case, the weatherinformation of the weather application program is displayed, so that theuser can easily check local weather.

Herein, a specific function is triggered by a specific gesture, so thatthe user can interact with the display effect of the wallpaper image,and the wallpaper image is further empowered on the basis ofappreciation. In addition, different target control functions aretriggered by interaction between the user and the wallpaper image, andthe target control functions can effectively protect the privacy andsecurity of the machine owner mode.

Optionally, the performing the target control function according to thetarget information includes:

when the input time is outside the time range corresponding to the firstanimation duration, the input time is within the time rangecorresponding to the second animation duration, and the input positionis located in the second display area, displaying a program interface ofa preset application program.

It is assumed that the first animation duration is the durationcorresponding to the first time period, the first time period is from 0ms to 10 ms, and the second animation duration is the durationcorresponding to the second time period, the second time period is from1 ms to 15 ms, and the second input is input at the 11th ms. In thiscase, the input time of the second input is outside the time periodcorresponding to the first animation duration and within the time periodcorresponding to the second animation duration. If the input position isstill in the second display area, the program interface of the presetapplication program is displayed, for example, a contact interface of aninstant chat application is entered.

Herein, through the interaction between the user and the display effectof the wallpaper image, the purpose of quickly displaying theapplication information that the user wishes to see is achieved, and atthe same time, the privacy and security of the machine owner mode can beeffectively protected.

Optionally, the performing the target control function according to thetarget information includes:

triggering to execute a first object control function when the displayarea of the object layer image is larger than a first preset thresholdand the input position is located in the first display area; and

triggering to execute a second object control function when the displayarea of the object layer image is larger than a first preset thresholdand the input position is located in the second display area;

where the first target control function and the second target controlfunction are different control functions.

It should be noted that the difference between the first target controlfunction and the second target control function may be that the twocontrol functions correspond to different modes, or the two controlfunctions themselves are different.

For example, the first target control function is to control theterminal display interface to be displayed in a first mode (daytimemode), and the second target control function is to control the terminaldisplay interface to be displayed in a second mode (night mode). Foranother example, the first target control function is to display acontact interface of an instant chat application, and the second targetcontrol function is to display a shopping page of a shoppingapplication.

Herein, combined with the display effect of the wallpaper image, aspecific function is triggered by a specific gesture. For example,clicking the first display area and the second display area respectivelycan trigger different functions, so that the user can interact with thedisplay effect of the target image, which further empowers the wallpaperimage on the basis of appreciation, and at the same time, caneffectively protect the privacy and security of the machine owner mode.

In the wallpaper display control method of the embodiments of thepresent application, the user can see the visual effect that the objectlayer image of the wallpaper image brightens first and then thebackground layer image brightens when the screen is lit, and the effectof the gradual diffusion combined with the shape outline displayed in aprocess of brightening the object layer image can bring a good visualexperience to the user. This method can not only effectively highlightthe user's wallpaper among the many information on the screen, but alsoenable different wallpapers set by the user to apply this effect. Inaddition, users can also activate specific functions through specificgestures in combination with display effects.

It should be noted that, in the wallpaper display control methodprovided by the embodiments of the present application, the executionbody may be a wallpaper display control apparatus, or a control modulein the wallpaper display control apparatus for executing the wallpaperdisplay control method. In an embodiment of the application, thewallpaper display control apparatus provided in the embodiments of theapplication is described by using an example in which the wallpaperdisplay control method is performed by a wallpaper display controlapparatus.

As shown in FIG. 4 , an embodiment of the present application alsoprovides a wallpaper display control apparatus 400, including:

a first receiving module 401, configured to receive a first inputperformed by a user, where the first input is used to trigger lightingof the screen of an electronic device; and

a first response module 402, configured to: in response to the firstinput, control an object layer image of a wallpaper image of the screenof the electronic device to execute a first display animation based on afirst animation parameter, and control a background layer image of thewallpaper image to execute a second display animation based on a secondanimation parameter.

The first animation parameter and the second animation parameter aredifferent.

Optionally, the wallpaper display control apparatus in the embodimentsof the present application further includes:

a first obtaining module, configured to: before the first responsemodule controls an object layer image of a wallpaper image of the screenof the electronic device to execute a first display animation based on afirst animation parameter, and controls a background layer image of thewallpaper image to execute a second display animation based on a secondanimation parameter, separate an object layer from a background layer ofthe wallpaper image to obtain the object layer image and the backgroundlayer image, and in a process of separating the object layer from thebackground layer of the wallpaper image, record outline information andcenter point information of the object layer image.

Optionally, in the wallpaper display control apparatus of theembodiments of the present application, the first response module isconfigured to: according to the outline information and the center pointinformation of the object layer image, control the object layer image ofthe wallpaper image of the screen of the electronic device to executethe first display animation in a preset manner;

where the preset manner includes at least one of the following:

a manner of spreading from the center point to the surrounding, and amanner of gathering from the surrounding to the center point.

Optionally, in the wallpaper display control apparatus of the embodimentof the present application, the first animation parameter changes from afirst numerical value to a second numerical value within a firstanimation duration, and the second animation parameter changes from athird numerical value to a fourth numerical value within a secondanimation duration;

The first animation duration is less than the second animation duration,and the first numerical value is greater than or equal to the thirdnumerical value.

The first animation parameter includes at least one of transparency andbrightness.

The second animation parameter includes at least one of transparency andbrightness.

The first animation duration is an animation duration corresponding tothe object layer image, and the second animation duration is ananimation duration corresponding to the background layer image.

Optionally, the wallpaper display control apparatus in the embodimentsof the present application further includes:

a second receiving module, configured to receive a second inputperformed by the user on the screen;

a determining module, configured to determine an input parameter of thesecond input, where the input parameter includes at least one of aninput time and an input location; and

a processing module, configured to execute a target control functionaccording to target information;

where the target information includes at least one of the following: afirst relationship, a second relationship, and a real-time display areaof the wallpaper image;

where the first relationship refers to a relationship between the inputtime and the first animation duration and the second animation duration,the second relationship refers to a relationship between the inputposition and a first display area and a second display area, the firstdisplay area is a display area corresponding to the object layer image,and the second display area is a display area corresponding to thebackground layer image;

The real-time display area of the wallpaper image is a real-time displayarea of the background layer image or a real-time display area of theobject layer image.

Optionally, in the wallpaper display control apparatus of theembodiments of the present application, the processing module isconfigured to: when the input time is within a time range correspondingto the first animation duration, and the input position is within thefirst display area, display an unlock interface;

or when the input time is within the time range corresponding to thefirst animation duration, the input position is within the first displayarea, and the input track of the second input is a preset track, displaythe target information of a preset application program.

Optionally, in the wallpaper display control apparatus of theembodiments of the present application, the processing module isconfigured to: when the input time is outside the time rangecorresponding to the first animation duration, the input time is withinthe time range corresponding to the second animation duration, and theinput position is located in the second display area, display a programinterface of a preset application program.

Optionally, in the wallpaper display control apparatus of theembodiments of the present application, the processing module isconfigured to trigger to execute a first object control function whenthe display area of the object layer image is larger than a first presetthreshold and the input position is located in the first display area;and

trigger to execute a second object control function when the displayarea of the object layer image is larger than a first preset thresholdand the input position is located in the second display area;

where the first target control function and the second target controlfunction are different control functions.

In the wallpaper display control apparatus of the embodiments of thepresent application, the object layer image and the background layerimage are displayed based on different animation parameters, which caneffectively distinguish the object layer image from the background layerimage in the wallpaper image, and then can highlight the object layerimage in the wallpaper image. In addition, any image set as thewallpaper by the user can achieve the effect of highlighting the objectlayer image in the wallpaper image, thereby strengthening the functionof the wallpaper in the process of using the mobile terminal by theuser.

The wallpaper display control apparatus in this embodiment of theapplication may be an apparatus, or a component, an integrated circuit,or a chip in a terminal. The apparatus may be a mobile electronicdevice, or may be a non-mobile electronic device. For example, themobile electronic device may be a mobile phone, a tablet computer, anotebook computer, a palmtop computer, an in-vehicle terminal device, awearable device, an ultra-mobile personal computer (UMPC), a netbook, ora personal digital assistant (PDA), and the non-mobile electronic devicemay be a server, a network attached storage (NAS), a personal computer(PC), a television (TV), a counter, or a self-service machine. This isnot specifically limited in this embodiment of the present application.

The wallpaper display control apparatus in this embodiment of thepresent application may be an apparatus with an operating system. Theoperating system may be an Android (Android) operating system, may be aniOS operating system, or may be another possible operating system, whichis not specifically limited in the embodiments of the presentapplication.

The wallpaper display control apparatus provided in this embodiment ofthe present application can implement the processes in the foregoingmethod embodiments in FIG. 1 , FIG. 2 , FIG. 3 a, and FIG. 3 b. To avoidrepetition, details are not described herein again.

Optionally, as shown in FIG. 5 , the embodiments of the presentapplication further provide an electronic device 500, including aprocessor 501, a memory 502, and programs or instructions stored in thememory 502 and executable on the processor 501. When the programs orinstructions are executed by the processor 501, the processes of theforegoing embodiment of the wallpaper display control method areimplemented, and a same technical effect can be achieved. To avoidrepetition, details are not described herein again.

It should be noted that the electronic device in this embodiment of thepresent application includes the foregoing mobile electronic device andthe foregoing non-mobile electronic device.

FIG. 6 is a schematic structural diagram of an electronic deviceaccording to an embodiment of the present application.

The electronic device 600 includes but is not limited to components suchas a radio frequency unit 601, a network module 602, an audio outputunit 603, an input unit 604, a sensor 605, a display unit 606, a userinput unit 607, an interface unit 608, a memory 609, and a processor610.

A person skilled in the art can understand that the electronic device600 may further include a power supply (for example, a battery) thatsupplies power to the components. The power supply may be logicallyconnected to the processor 610 by using a power management system, so asto implement functions such as charging management, dischargingmanagement, and power consumption management by using the powermanagement system. The electronic device is not limited to theelectronic device structure shown in FIG. 6 . The electronic device mayinclude more or fewer components than those shown in the figure, orcombine some of the components, or arrange the components differently.Details are not described herein.

The user input unit 607 is configured to receive a first input performedby a user, where the first input is used to trigger lighting of thescreen of an electronic device.

The processor 610 is configured to: in response to the first input,control an object layer image of a wallpaper image of the screen of theelectronic device to execute a first display animation based on a firstanimation parameter, and control a background layer image of thewallpaper image to execute a second display animation based on a secondanimation parameter.

The first animation parameter and the second animation parameter aredifferent.

In the electronic device of the embodiments of the present application,the object layer image and the background layer image are displayedbased on different animation parameters, which can effectivelydistinguish the object layer image from the background layer image inthe wallpaper image, and then can highlight the object layer image inthe wallpaper image. In addition, any image set as the wallpaper by theuser can achieve the effect of highlighting the object layer image inthe wallpaper image, thereby strengthening the function of the wallpaperin the process of using the mobile terminal by the user.

Optionally, the processor 610 is further configured to separate anobject layer from a background layer of the wallpaper image to obtainthe object layer image and the background layer image, and in a processof separating the object layer from the background layer of thewallpaper image, record outline information and center point informationof the object layer image.

Optionally, the processor 610 is further configured to: according to theoutline information and the center point information of the object layerimage, control the object layer image of the wallpaper image of thescreen of the electronic device to execute the first display animationin a preset manner;

where the preset manner includes at least one of the following:

a manner of spreading from the center point to the surrounding, and amanner of gathering from the surrounding to the center point.

Optionally, the first animation parameter changes from a first numericalvalue to a second numerical value within a first animation duration, andthe second animation parameter changes from a third numerical value to afourth numerical value within a second animation duration;

The first animation duration is less than the second animation duration,and the first numerical value is greater than or equal to the thirdnumerical value.

The first animation parameter includes at least one of transparency andbrightness.

The second animation parameter includes at least one of transparency andbrightness.

The first animation duration is an animation duration corresponding tothe object layer image, and the second animation duration is ananimation duration corresponding to the background layer image.

Optionally, the user input unit 607 is further configured to receive asecond input performed by the user on the screen;

and the processor 610 is further configured to determine an inputparameter of the second input, where the input parameter includes atleast one of an input time and an input position;

execute a target control function according to target information;

where the target information includes at least one of the following: afirst relationship, a second relationship, and a real-time display areaof the wallpaper image;

where the first relationship refers to a relationship between the inputtime and the first animation duration and the second animation duration,the second relationship refers to a relationship between the inputposition and a first display area and a second display area, the firstdisplay area is a display area corresponding to the object layer image,and the second display area is a display area corresponding to thebackground layer image;

The real-time display area of the wallpaper image is a real-time displayarea of the background layer image or a real-time display area of theobject layer image.

Optionally, the processor 610 is further configured to: when the inputtime is within a time range corresponding to the first animationduration, and the input position is within the first display area,displaying an unlock interface;

or when the input time is within the time range corresponding to thefirst animation duration, the input position is within the first displayarea, and the input track of the second input is a preset track, displaythe target information of a preset application program.

Optionally, the processor 610 is further configured to: when the inputtime is outside the time range corresponding to the first animationduration, the input time is within the time range corresponding to thesecond animation duration, and the input position is located in thesecond display area, display a program interface of a preset applicationprogram.

Optionally, the processor 610 is further configured to trigger toexecute a first object control function when the display area of theobject layer image is larger than a first preset threshold and the inputposition is located in the first display area; and

trigger to execute a second object control function when the displayarea of the object layer image is larger than a first preset thresholdand the input position is located in the second display area;

where the first target control function and the second target controlfunction are different control functions.

In the electronic device of the embodiments of the present application,the object layer image and the background layer image are displayedbased on different animation parameters, which can effectivelydistinguish the object layer image from the background layer image inthe wallpaper image, and then can highlight the object layer image inthe wallpaper image. In addition, any image set as the wallpaper by theuser can achieve the effect of highlighting the object layer image inthe wallpaper image, thereby strengthening the function of the wallpaperin the process of using the mobile terminal by the user.

It should be understood that, in the embodiments of the presentapplication, the input unit 604 may include a graphics processing unit(Graphics Processing Unit, GPU) 6041 and a microphone 6042, and thegraphics processing unit 6041 processes image data of a still picture orvideo obtained by an image capture apparatus (such as a camera) in avideo capture mode or an image capture mode. The display unit 606 mayinclude a display panel 6061, and the display panel 6061 may beconfigured in a form of a liquid crystal display, an organiclight-emitting diode, or the like. The user input unit 607 includes atouch panel 6071 and another input device 6072. The touch panel 6071 isalso referred to as a touchscreen. The touch panel 6071 may include twoparts: a touch detection apparatus and a touch controller. The anotherinput device 6072 may include but is not limited to a physical keyboard,a functional button (such as a volume control button or a power on/offbutton), a trackball, a mouse, and a joystick. Details are not describedherein. The memory 609 may be configured to store a software program andvarious data, including but not limited to an application program and anoperating system. The processor 610 may be integrated with anapplication processor and a modem processor. The application processormainly processes an operating system, a user interface, an applicationprogram, and the like, and the modem processor mainly processes wirelesscommunication. It can be understood that, alternatively, the modemprocessor may not be integrated into the processor 610.

An embodiment of the present application further provides a readablestorage medium. The readable storage medium stores a program or aninstruction. When the program or instruction is executed by a processor,the processes of the foregoing wallpaper display control embodiment areimplemented, and a same technical effect can be achieved. To avoidrepetition, details are not described herein again.

The processor is a processor in the electronic device in the foregoingembodiment. The readable storage medium includes a computer-readablestorage medium such as a computer read-only memory (ROM), a randomaccess memory (RAM), a magnetic disk, or an optical disc.

An embodiment of the present application further provides a chip, wherethe chip includes a processor and a communication interface, thecommunication interface is coupled to the processor, and the processoris configured to run a program or an instruction to implement theforegoing processes of the foregoing embodiment of the wallpaper displaycontrol method, and a same technical effect can be achieved. To avoidrepetition, details are not described herein again.

It should be understood that the chip mentioned in this embodiment ofthe present application may also be referred to as a system-level chip,a system chip, a chip system, or an on-chip system chip.

It can be understood that the embodiments described in the presentdisclosure may be implemented by hardware, software, firmware,middleware, microcode, or a combination thereof. For implementation withhardware, a module, unit, submodule, subunit, and the like may beimplemented in one or more application specific integrated circuits(ASIC), a digital signal processor (DSP), a digital signal processordevice (DSPD), a programmable logic device (PLD), a field-programmablegate array (FPGA), a general-purpose processor, a controller, amicrocontroller, a microprocessor, another electronic unit forimplementing the functions of the present application, or a combinationthereof.

It should be noted that, in this specification, the terms “include”,“comprise”, or their any other variant is intended to cover anon-exclusive inclusion, so that a process, a method, an article, or anapparatus that includes a list of elements not only includes thoseelements but also includes other elements which are not expresslylisted, or further includes elements inherent to such process, method,article, or apparatus. In the absence of more restrictions, an elementdefined by the statement “including a . . . ” does not preclude thepresence of other identical elements in the process, method, article, orapparatus that includes the element. In addition, it should be notedthat the scope of the method and the apparatus in the embodiments of thepresent application is not limited to performing functions in anillustrated or discussed sequence, and may further include performingfunctions in a basically simultaneous manner or in a reverse sequenceaccording to the functions concerned. For example, the described methodmay be performed in an order different from that described, and thesteps may be added, omitted, or combined. In addition, featuresdescribed with reference to some examples may be combined in otherexamples.

Based on the descriptions of the foregoing implementation manners, aperson skilled in the art may clearly understand that the method in theforegoing embodiment may be implemented by software in addition to anecessary universal hardware platform or by hardware only. In mostcircumstances, the former is a preferred implementation manner. Based onsuch understanding, the technical solutions of the present applicationessentially, or the part contributing to the prior art may beimplemented in a form of a software product. The computer softwareproduct is stored in a storage medium (for example, a ROM/RAM, amagnetic disk, or a compact disc), and includes several instructions forinstructing a terminal (which may be a mobile phone, a computer, aserver, an air conditioner, a network device, or the like) to performthe method described in the embodiments of the present application.

The embodiments of the present application are described above withreference to the accompanying drawings, but the present application isnot limited to the foregoing specific implementation manners. Theforegoing specific implementation manners are merely schematic insteadof restrictive. Under enlightenment of the present application, a personof ordinary skills in the art may make many forms without departing fromaims and the protection scope of claims of the present application, allof which fall within the protection scope of the present application.

What is claimed is:
 1. A wallpaper display control method, comprising:receiving a first input performed by a user, wherein the first input isused to trigger lighting of the screen of an electronic device; and inresponse to the first input, controlling an object layer image of awallpaper image of the screen of the electronic device to execute afirst display animation based on a first animation parameter, andcontrolling a background layer image of the wallpaper image to execute asecond display animation based on a second animation parameter; whereinthe first animation parameter and the second animation parameter aredifferent.
 2. The wallpaper display control method according to claim 1,wherein before the controlling an object layer image of a wallpaperimage of the screen of the electronic device to execute a first displayanimation based on a first animation parameter, and controlling abackground layer image of the wallpaper image to execute a seconddisplay animation based on a second animation parameter; the methodfurther comprises: separating an object layer from a background layer ofthe wallpaper image to obtain the object layer image and the backgroundlayer image, and in a process of separating the object layer from thebackground layer of the wallpaper image, recording outline informationand center point information of the object layer image.
 3. The wallpaperdisplay control method according to claim 2, wherein the controlling anobject layer image of a wallpaper image of the screen of the electronicdevice to execute a first display animation based on a first animationparameter comprises: according to the outline information and the centerpoint information of the object layer image, controlling the objectlayer image of the wallpaper image of the screen of the electronicdevice to execute the first display animation in a preset manner;wherein the preset manner comprises at least one of the following: amanner of spreading from the center point to the surrounding, and amanner of gathering from the surrounding to the center point.
 4. Thewallpaper display control method according to claim 1, wherein the firstanimation parameter changes from a first numerical value to a secondnumerical value within a first animation duration, and the secondanimation parameter changes from a third numerical value to a fourthnumerical value within a second animation duration; the first animationduration is less than the second animation duration, and the firstnumerical value is greater than or equal to the third numerical value;the first animation parameter comprises at least one of transparency andbrightness; the second animation parameter comprises at least one oftransparency and brightness; and the first animation duration is ananimation duration corresponding to the object layer image, and thesecond animation duration is an animation duration corresponding to thebackground layer image.
 5. The wallpaper display control methodaccording to claim 4, further comprising: receiving a second inputperformed by the user on the screen; determining an input parameter ofthe second input, wherein the input parameter comprises at least one ofan input time and an input location; and executing a target controlfunction according to target information; wherein the target informationcomprises at least one of the following: a first relationship, a secondrelationship, and a real-time display area of the wallpaper image;wherein the first relationship refers to a relationship between theinput time and the first animation duration and the second animationduration, the second relationship refers to a relationship between theinput position and a first display area and a second display area, thefirst display area is a display area corresponding to the object layerimage, and the second display area is a display area corresponding tothe background layer image; and the real-time display area of thewallpaper image is a real-time display area of the background layerimage or a real-time display area of the object layer image.
 6. Thewallpaper display control method according to claim 5, wherein theexecuting a target control function according to the target informationcomprises: when the input time is within a time range corresponding tothe first animation duration, and the input position is within the firstdisplay area, displaying an unlock interface; or when the input time iswithin the time range corresponding to the first animation duration, theinput position is within the first display area, and the input track ofthe second input is a preset track, displaying the target information ofa preset application program.
 7. The wallpaper display control methodaccording to claim 5, wherein the executing a target control functionaccording to the target information comprises: when the input time isoutside the time range corresponding to the first animation duration,the input time is within the time range corresponding to the secondanimation duration, and the input position is located in the seconddisplay area, displaying a program interface of a preset applicationprogram.
 8. The wallpaper display control method according to claim 5,wherein the executing a target control function according to the targetinformation comprises: triggering to execute a first object controlfunction when the display area of the object layer image is larger thana first preset threshold and the input position is located in the firstdisplay area; and triggering to execute a second object control functionwhen the display area of the object layer image is larger than a firstpreset threshold and the input position is located in the second displayarea; wherein the first target control function and the second targetcontrol function are different control functions.
 9. An electronicdevice, comprising: a processor; and a memory storing programs orinstructions that are executable on the processor, wherein the programsor instructions, when executed by the processor, cause the electronicdevice to perform the following steps: receiving a first input performedby a user, wherein the first input is used to trigger lighting of thescreen of an electronic device; and in response to the first input,controlling an object layer image of a wallpaper image of the screen ofthe electronic device to execute a first display animation based on afirst animation parameter, and controlling a background layer image ofthe wallpaper image to execute a second display animation based on asecond animation parameter; wherein the first animation parameter andthe second animation parameter are different.
 10. The electronic deviceaccording to claim 9, wherein before the controlling an object layerimage of a wallpaper image of the screen of the electronic device toexecute a first display animation based on a first animation parameter,and controlling a background layer image of the wallpaper image toexecute a second display animation based on a second animationparameter; the programs or instructions, when executed by the processor,cause the electronic device to further perform the following steps:separating an object layer from a background layer of the wallpaperimage to obtain the object layer image and the background layer image,and in a process of separating the object layer from the backgroundlayer of the wallpaper image, recording outline information and centerpoint information of the object layer image.
 11. The electronic deviceaccording to claim 10, wherein in the process of controlling an objectlayer image of a wallpaper image of the screen of the electronic deviceto execute a first display animation based on a first animationparameter, the programs or instructions, when executed by the processor,cause the electronic device to further perform the following steps:according to the outline information and the center point information ofthe object layer image, controlling the object layer image of thewallpaper image of the screen of the electronic device to execute thefirst display animation in a preset manner; wherein the preset mannercomprises at least one of the following: a manner of spreading from thecenter point to the surrounding, and a manner of gathering from thesurrounding to the center point.
 12. The electronic device according toclaim 9, wherein the first animation parameter changes from a firstnumerical value to a second numerical value within a first animationduration, and the second animation parameter changes from a thirdnumerical value to a fourth numerical value within a second animationduration; the first animation duration is less than the second animationduration, and the first numerical value is greater than or equal to thethird numerical value; the first animation parameter comprises at leastone of transparency and brightness; the second animation parametercomprises at least one of transparency and brightness; and the firstanimation duration is an animation duration corresponding to the objectlayer image, and the second animation duration is an animation durationcorresponding to the background layer image.
 13. The electronic deviceaccording to claim 12, wherein the programs or instructions, whenexecuted by the processor, cause the electronic device to furtherperform the following steps: receiving a second input performed by theuser on the screen; determining an input parameter of the second input,wherein the input parameter comprises at least one of an input time andan input location; and executing a target control function according totarget information; wherein the target information comprises at leastone of the following: a first relationship, a second relationship, and areal-time display area of the wallpaper image; wherein the firstrelationship refers to a relationship between the input time and thefirst animation duration and the second animation duration, the secondrelationship refers to a relationship between the input position and afirst display area and a second display area, the first display area isa display area corresponding to the object layer image, and the seconddisplay area is a display area corresponding to the background layerimage; and the real-time display area of the wallpaper image is areal-time display area of the background layer image or a real-timedisplay area of the object layer image.
 14. The electronic deviceaccording to claim 13, wherein in the process of executing a targetcontrol function according to the target information, the programs orinstructions, when executed by the processor, cause the electronicdevice to further perform the following steps: when the input time iswithin a time range corresponding to the first animation duration, andthe input position is within the first display area, displaying anunlock interface; or when the input time is within the time rangecorresponding to the first animation duration, the input position iswithin the first display area, and the input track of the second inputis a preset track, displaying the target information of a presetapplication program.
 15. The electronic device according to claim 13,wherein in the process of executing a target control function accordingto the target information, the programs or instructions, when executedby the processor, cause the electronic device to further perform thefollowing steps: when the input time is outside the time rangecorresponding to the first animation duration, the input time is withinthe time range corresponding to the second animation duration, and theinput position is located in the second display area, displaying aprogram interface of a preset application program.
 16. The electronicdevice according to claim 13, wherein in the process of executing atarget control function according to the target information, theprograms or instructions, when executed by the processor, cause theelectronic device to further perform the following steps: triggering toexecute a first object control function when the display area of theobject layer image is larger than a first preset threshold and the inputposition is located in the first display area; and triggering to executea second object control function when the display area of the objectlayer image is larger than a first preset threshold and the inputposition is located in the second display area; wherein the first targetcontrol function and the second target control function are differentcontrol functions.
 17. A non-transitory readable storage medium storingprograms or instructions, wherein the programs or instructions, whenexecuted by a processor, cause the processor to perform the followingsteps: receiving a first input performed by a user, wherein the firstinput is used to trigger lighting of the screen of an electronic device;and in response to the first input, controlling an object layer image ofa wallpaper image of the screen of the electronic device to execute afirst display animation based on a first animation parameter, andcontrolling a background layer image of the wallpaper image to execute asecond display animation based on a second animation parameter; whereinthe first animation parameter and the second animation parameter aredifferent.
 18. The non-transitory readable storage medium according toclaim 17, wherein before the controlling an object layer image of awallpaper image of the screen of the electronic device to execute afirst display animation based on a first animation parameter, andcontrolling a background layer image of the wallpaper image to execute asecond display animation based on a second animation parameter; theprograms or instructions, when executed by the processor, cause theprocessor to further perform the following steps: separating an objectlayer from a background layer of the wallpaper image to obtain theobject layer image and the background layer image, and in a process ofseparating the object layer from the background layer of the wallpaperimage, recording outline information and center point information of theobject layer image.
 19. The non-transitory readable storage mediumaccording to claim 18, wherein in the process of controlling an objectlayer image of a wallpaper image of the screen of the electronic deviceto execute a first display animation based on a first animationparameter, the programs or instructions, when executed by a processor,cause the processor to further perform the following steps: according tothe outline information and the center point information of the objectlayer image, controlling the object layer image of the wallpaper imageof the screen of the electronic device to execute the first displayanimation in a preset manner; wherein the preset manner comprises atleast one of the following: a manner of spreading from the center pointto the surrounding, and a manner of gathering from the surrounding tothe center point.
 20. The non-transitory readable storage mediumaccording to claim 17, wherein the first animation parameter changesfrom a first numerical value to a second numerical value within a firstanimation duration, and the second animation parameter changes from athird numerical value to a fourth numerical value within a secondanimation duration; the first animation duration is less than the secondanimation duration, and the first numerical value is greater than orequal to the third numerical value; the first animation parametercomprises at least one of transparency and brightness; the secondanimation parameter comprises at least one of transparency andbrightness; and the first animation duration is an animation durationcorresponding to the object layer image, and the second animationduration is an animation duration corresponding to the background layerimage.